﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

using EHTWebsite.Code;
/// <summary>
/// Author: toanvt
/// CreatedDate: 13/12/2011
/// Description: Quản trị thống kê
/// </summary>
public partial class Administrator_AdminTotal : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            LoadThongKe();
        }
    }

    /// <summary>
    /// Author: toanvt
    /// CreatedDate: 13/12/2011
    /// Description: Load dữ liệu thống kê
    /// </summary>
    private void LoadThongKe()
    {
        DataSet ds = ThongKeProvider.GetThongkes();
        this.lbTotalFile.Text = ds.Tables[0].Rows[0][0].ToString();
        this.lbTotalHinhAnhCongTy.Text = ds.Tables[0].Rows[1][0].ToString();
        this.lbTotalHoTro.Text = ds.Tables[0].Rows[3][0].ToString();
        this.lbTotalKhachHang.Text = ds.Tables[0].Rows[4][0].ToString();
        this.lbTotalLienHe.Text = ds.Tables[0].Rows[5][0].ToString();
        this.lbTotalSanPham.Text = ds.Tables[0].Rows[7][0].ToString();
        this.lbTotalTinTuc.Text = ds.Tables[0].Rows[8][0].ToString();
        this.lbTotalVideo.Text = ds.Tables[0].Rows[9][0].ToString();
        this.lbTotalBanner.Text = ds.Tables[0].Rows[10][0].ToString();
    }
}
